package com.iplatform.file.function.meta.domain;

import com.iplatform.module.annotation.KeyId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Dair
 * @since
 */

/**
 * 字段标签表
 */
@ApiModel(description = "字段标签表")
@Data
public class FieldMeta implements Serializable {
	/**
	 * 字段标签记录id
	 */
	@ApiModelProperty(value = "字段标签记录id")
	@KeyId
	private Long id;
	
	/**
	 * 表id
	 */
	@ApiModelProperty(value = "表id")
	private Long tableId;
	
	/**
	 * 数据库字段名
	 */
	@ApiModelProperty(value = "数据库字段名")
	private String columnName;
	
	/**
	 * 数据库字段id
	 */
	@ApiModelProperty(value = "数据库字段id")
	private Long fieldId;
	
	/**
	 * 父字段标签记录id
	 */
	@ApiModelProperty(value = "父字段标签记录id")
	private Long pId;
	
	/**
	 * 列名
	 */
	@ApiModelProperty(value = "列名")
	private String columnCompoment;
	
	
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer orderNum;
	
	/**
	 * 子节点
	 */
	@ApiModelProperty(value = "子节点")
	private List<FieldMeta> childList;
	
	public List<FieldMeta> getChildList() {
		return childList;
	}
	
	public void setChildList(List<FieldMeta> childList) {
		this.childList = childList;
	}
	
	private static final long serialVersionUID = 1L;
}